package fr.enseirbmatmeca.apms.spring.model.project;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.hibernate.annotations.GenericGenerator;

@Entity
public class MarkCriteria {

	/**
	 * 
	 * contain the name of the criteria and the value of the mark for this criteria
	 * @author coudar
	 * 
	 */
	private String id;
	private String name;
	private float value;
	
	public static float MIN_VALUE = 0f;
	public static float MAX_VALUE = 5f;
	
	@Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(unique = true, nullable = false)
	 public String getId() {
		return id;
	}
	
	@Column(nullable = false)
	public String getName() {
		return name;
	}
	
	 @Column(nullable = false)
	public float getValue() {
		return value;
	}
	 
	public void setId(String id) {
		this.id = id;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	public void setValue(float value) {
		this.value = value;
	}
	
}
